<li class="fileBox document" id="fileBox-{$file.id}">
    <div class="wraper">
        <a class="file" href="{$file.path}/{$file.name}.{$file.ext}">{if $file.alt}{$file.alt}{else}{$file.name}.{$file.ext}{/if}</a>
    </div>
    <a class="delete icon" href="javascript:fileDelete({$file.id},{$file.fileType},'{$item.fieldId|default:global}')"></a>
</li>